<%-- 
    Document   : ApplyUser
    Created on : 8 févr. 2012, 13:52:46
    Author     : Gaëtan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<div style="margin-top: 30px; margin-left: 180px;">

    <h2><s:property value="%{getText('apply.user.title')}" /></h2>
    <table>
        <s:iterator value="applies">

            <tr>
                <td><a href="offerAdmin.action?id=${stage.id}&back=applyUser"><s:property value="stage.titre"/></a></td>
                <td><s:property value="stage.entreprise"/> - <s:property value="stage.ville"/></td>
                <td><s:text name="date.format">s
                        <s:param value="stage.dateOffre.toGregorianCalendar().getTime()"/>
                    </s:text></td>
                <td><s:form method="post" action="removeApply" theme="simple">
                        <s:hidden name="id" />
                        <s:submit value="%{getText('apply.remove')}" />
                    </s:form></td>
            </tr>
        </s:iterator>  
    </table> 
    <br/>
    <br/>
    <br/>
    <s:if test="offer!=null">
        <h2><s:property value="%{getText('attribution.user.title')}" /></h2>
        
        <table>
            <tr>
                <td><a href="offerAdmin.action?id=${offer.id}&back=applyUser"><s:property value="offer.titre"/></a></td>
                <td><s:property value="offer.entreprise"/> - <s:property value="offer.ville"/></td>
                <td><s:text name="date.format">
                        <s:param value="offer.dateOffre.toGregorianCalendar().getTime()"/>
                    </s:text></td>
            </tr> 
    </table>
    </s:if>
    <s:else>
        <h2><s:property value="%{getText('attribution.no.user.title')}" /></h2>
    </s:else>

</div>
